import request from '@/utils/request'

// 查询碳能量提现列表
export function listStaffIntegralWithdrawal(query) {
  return request({
    url: '/ec/staffIntegralWithdrawal/list',
    method: 'get',
    params: query
  })
}

// 查询碳能量提现详细
export function getStaffIntegralWithdrawal(id) {
  return request({
    url: '/ec/staffIntegralWithdrawal/' + id,
    method: 'get'
  })
}

// 申请碳能量提现
export function applyStaffIntegralWithdrawal(data) {
  return request({
    url: '/ec/staffIntegralWithdrawal/apply',
    method: 'post',
    params: data
  })
}

// 撤销碳能量提现
export function revokeStaffIntegralWithdrawal(data) {
  return request({
    url: '/ec/staffIntegralWithdrawal/revoke',
    method: 'post',
    data: data
  })
}

// 删除碳能量提现
export function delStaffIntegralWithdrawal(id) {
  return request({
    url: '/ec/staffIntegralWithdrawal/' + id,
    method: 'delete'
  })
}
